﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProcessList.aspx.cs" Inherits="ProcessList" %>

<%@ Register Src="head.ascx" TagName="Head" TagPrefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>小工具</title>
     <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
   <div style="vertical-align: middle; text-align: center">
    <form id="form1" runat="server">
   <table border="0" width="100%">
        <tr>
            <td style="height: 53px; width: 1109px;"><uc1:Head ID="Head2" runat="server" /></td>
        </tr>
        <tr>
                <td style="width: 1109px; font-size: 15px; font-family: 宋体;">
               <br />
                    流程列表<br />
                    <br />
           流程类型:<asp:DropDownList ID="ddlType" runat="server"><asp:ListItem Value="">全部</asp:ListItem><asp:ListItem Value="1">常规</asp:ListItem><asp:ListItem Value="0">非常规</asp:ListItem></asp:DropDownList> &nbsp;审核状态:<asp:DropDownList ID="ddlStatus" runat="server"><asp:ListItem Value="">全部</asp:ListItem><asp:ListItem Value="0">未审核</asp:ListItem><asp:ListItem Value="1">审核通过</asp:ListItem><asp:ListItem Value="2">审核未通过</asp:ListItem></asp:DropDownList>
           <asp:Button ID="cmdSearch" runat="server" OnClick="cmdSearch_Click" Text="查询" />
        <br />
       
    
    <br />

        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="OnPageIndexChanging" OnRowEditing="GridView2_RowEditing" Width="881px" style="font-size: 15px" OnRowDeleting="GridView2_RowDeleting">
            <Columns>
                <asp:BoundField DataField="flow_id" HeaderText="ID" />
                <asp:HyperLinkField DataNavigateUrlFields="flow_id" DataNavigateUrlFormatString="ProccessDetail.aspx?flow_id={0}"
                    DataTextField="name" HeaderText="名称" />
                <asp:BoundField DataField="start_time" HeaderText="开始时间" />
                <asp:BoundField DataField="end_time" HeaderText="结束时间" />
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                         <%# DGFormatSex(Convert.ToString(DataBinder.Eval(Container.DataItem,"status"))) %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="创建人">
                    <ItemTemplate>
                          <%# GetCheckUserName(Convert.ToString(DataBinder.Eval(Container.DataItem, "user_id")))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="create_time" HeaderText="创建时间" />
                <asp:TemplateField HeaderText="审核人">
                    <ItemTemplate>
                         <%# GetCheckUserName(Convert.ToString(DataBinder.Eval(Container.DataItem, "check_user_id")))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField EditText="修改/审核" HeaderText="修改/审核" ShowEditButton="True" ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
        </td></tr> 
        </table>
    </form>
   </div>
</body>
</html>
